package csc.fresher.dao;

import java.util.List;

import csc.fresher.entity.InterestRate;
import csc.fresher.entity.SavingAccountHasInterestRate;

public interface InterestRateDao {
	public void insert(InterestRate interestRate);
	public void update(InterestRate interestRate);
	public InterestRate getInterestRateByID(int interestRateID);
	public InterestRate getInterestRateByType(int currentcyID, int periodTypeID);
	public List<InterestRate> getAllInterestRates();
	public List<InterestRate> getListInterestRates(int startIndex, int maxReturn);
	public List<InterestRate> getAllInterestRateByCurrencyID(int currencyID);
	public int totalInterestRates();
	public InterestRate getInterestNewestRateByType(int currencyID, int periodTypeID);
}
